package com.多线程07.demo02;

public class MyRunable01 implements Runnable{
    public void run() {
        for (int i=0;i<100;i++){
            System.out.println(i);
        }
    }

    public static void main(String[] args) {
        MyRunable01 myRunable01 = new MyRunable01();
        Thread thread01 = new Thread(myRunable01);
        thread01.start();


        Thread thread02 = new Thread(myRunable01);
        thread02.start();

    }


}
